package cn.majingjing.tm.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ServiceController {

	@Value("${server.port}")
	String port;

	@RequestMapping("/hello")
	public String hello(@RequestParam(name = "name", defaultValue = "皇太极") String name) {
		return String.format("hello:%s , 欢迎使用[%s]的服务", name, port);
	}

}
